.controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.directory-selector,
.command-input,
.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-selector span {
  flex-grow: 1;
  background: #252526;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9em;
}

button {
  background: #007acc;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background: #0062a3;
}

button:disabled {
  background: #3d3d3d;
  cursor: not-allowed;
}

.quick-actions button {
  background: #4caf50;
}

.quick-actions button:hover {
  background: #388e3c;
}

.command-input input {
  flex-grow: 1;
  padding: 10px;
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  color: #d4d4d4;
  font-family: inherit;
}

.command-input input:focus {
  outline: none;
  border-color: #007acc;
}

.terminal-output {
  flex-grow: 1;
  background: #0c0c0c;
  border-radius: 5px;
  padding: 15px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  max-height: 400px;
  min-height: 300px;
  width: 100%;
}

.terminal-output div {
  margin-bottom: 5px;
  white-space: pre-wrap;
}

.stdout {
  color: #d4d4d4;
}

.stderr {
  color: #f48771;
}

.command {
  color: #9cdcfe;
  font-weight: bold;
  margin: 10px 0;
}

.info {
  color: #4ec9b0;
}

.executing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4ec9b0;
  margin-top: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(78, 201, 176, 0.3);
  border-radius: 50%;
  border-top-color: #4ec9b0;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.command-history {
  background: #252526;
  border-radius: 5px;
  padding: 15px;
}

.command-history h3 {
  margin-top: 0;
  color: #4ec9b0;
}

.command-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.command-history li {
  margin-bottom: 8px;
}

.command-history button {
  width: 100%;
  text-align: left;
  background: #2d2d2d;
  padding: 8px 12px;
  font-size: 0.9em;
}

.command-history button:hover {
  background: #3d3d3d;
}
